package com.wwwc.index.web.servlet;

import java.io.*;
import java.text.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.ServletRequestWrapper;
import java.net.*;

import com.wwwc.util.web.*;

public class ErrorPageBean {
    public static StringBuffer errorTable (HttpServletRequest request, String message) {
	StringBuffer sbf = new StringBuffer();
	sbf.append("<CENTER>");
	sbf.append("<H3>Error!</H3>");
	sbf.append("\n<TABLE cellSpacing='0' cellPadding='0' border='0' width='100%'>");
	sbf.append("<TR><TD align='center'>");
	sbf.append(message);
	sbf.append("</TD><TR>");
	sbf.append("</TABLE>");
	sbf.append("<BR><TABLE>");
	sbf.append("<TR>");
	sbf.append(MyHtml.makeLinkCell("Back", "javaScript:history.go(-1);"));
	sbf.append("</TR>");
	sbf.append("</TABLE>");
	sbf.append("</CENTER>");
	return sbf;
    }
}






